Skip to content

Feat(webapp) runs table live updates#3460

Closed
matthew-gill wants to merge 4 commits intotriggerdotdev:mainfrom
matthew-gill:feature/reloading-the-runs-table
Closed

Feat(webapp) runs table live updates#3460
matthew-gill wants to merge 4 commits intotriggerdotdev:mainfrom
matthew-gill:feature/reloading-the-runs-table

Conversation

@matthew-gill
Copy link
Copy Markdown

#General

Updates to the Runs table:

  • Any "in-flight" run will now automatically poll for status updates, so rendered runs will have an up to date status
  • Adds two new CTAs on the table header on the first page of pagination:
    1. "Live" button, toggleable, when enabled, new runs will appear in the table (periodically refreshed)
    1. "X new runs" button, when clicked, will pull new runs into the table

When Live button is enabled, the X new runs button will not appear.


Screenshots

image image

💯

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 28, 2026

⚠️ No Changeset found

Latest commit: 149e2c0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

Hi @matthew-gill, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/triggerdotdev/trigger.dev/blob/main/CONTRIBUTING.md for more details.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 07ceb2ee-9556-48f3-a388-882a7b5cb7b9

📥 Commits

Reviewing files that changed from the base of the PR and between c69e939 and 149e2c0.

📒 Files selected for processing (11)
  • .server-changes/runs-live-and-row-polling.md
  • .server-changes/runs-table-new-runs-banner.md
  • apps/webapp/app/components/runs/v3/RunsLiveControl.tsx
  • apps/webapp/app/hooks/useAutoRevalidate.ts
  • apps/webapp/app/hooks/useNewRunsCount.ts
  • apps/webapp/app/hooks/useRunsRowPolling.ts
  • apps/webapp/app/presenters/v3/NextRunListPresenter.server.ts
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs._index/route.tsx
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.count-new.ts
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.refresh.ts
  • apps/webapp/app/utils/pathBuilder.ts

Walkthrough

This pull request introduces live polling functionality for the runs index page. It adds two complementary polling mechanisms: (1) a "Live" toggle that revalidates and auto-prepends new runs every 3 seconds on the first page, and (2) per-row polling that refreshes non-terminal run rows via a new resource endpoint. The implementation includes new hooks for managing polling state (useNewRunsCount, useRunsRowPolling), an enhanced useAutoRevalidate hook with visibility-aware pausing, a new RunsLiveControl component for UI controls, a new presenter method for fetching runs by ID, two Remix resource routes for count and refresh operations, and integration into the runs index page. Documentation entries specify the polling behaviors and UI patterns.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot closed this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant